#pragma once 

#define SIZE 1024

typedef struct _myFILE
{
    int fileno;
    char buffer[SIZE];
    int flag;
    int end;
}myFILE;


myFILE* myfopen(const char* path , const char* mode);

int myfwrite(const void *ptr,int size,int num,myFILE* stream);

int myfflush(myFILE* stream);

int myfclose(myFILE* fp);
